package org.example.bean;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SalesRecord {
    private String orderId;
    private String storeId;
    private String bookId;
    private LocalDate saleDate;
    private LocalTime saleTime;
    private Integer quantity;
    private BigDecimal unitPrice;
    private BigDecimal totalAmount;
    private Integer paymentMethod; // 1-现金 2-银行卡 3-移动支付 4-其他
    private String memberId;
    private String employeeId;
    private LocalDateTime createTime;
}